package com.housekeeping.dao;

import com.housekeeping.model.Order;

import java.util.List;

/**
 * 订单数据访问接口
 */
public interface OrderDAO {
    
    Order findById(Integer orderId);
    
    List<Order> findAllWithDetails();
    
    List<Order> findByUserId(Integer userId);
    
    List<Order> findByStaffId(Integer staffId);
    
    List<Order> findByStatus(Integer status);
    
    int insert(Order order);
    
    int update(Order order);
    
    int updateStatus(Integer orderId, Integer status);
    
    int assignStaff(Integer orderId, Integer staffId);
    
    int delete(Integer orderId);
    
    long count();
    
    int countByStaffId(Integer staffId);
    
    int countByStaffIdAndStatus(Integer staffId, Integer status);
} 